#include <iostream>
#include <vector>
#include <iterator>
#include <algorithm>
using namespace std;

void test1(){
    vector<int> vec = {6, 5, 7, 9, 1, 3, 4, 3, 8, 6, 4};
    ostream_iterator<int> osi(cout, " ");

    copy(vec.begin(), vec.end(), osi);
    //在赋值运算符函数的实现逻辑中就实现了cout << 6 << endl;这些
}

int main(){
    test1();

    return 0;
}